package com.tuling.test.annotation;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@ComponentScan("com.tuling.test.annotation")
@EnableAspectJAutoProxy
public class AppConfig {
/*	@Bean
	public UserService userService(){
		return new UserService();
	}*/

	@Bean
	public UserFactoryBean userBean(){
		UserFactoryBean user = new UserFactoryBean();
		return user;
	}

	@Bean
	public OrderService orderService1(){
		return new OrderService();
	}

	@Bean
	public OrderService orderService2(){
		return new OrderService();
	}
}
